package org.jeecg.modules.comment.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.wechat.vo.WxUserVO;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO:
 *
 * @author Zhang Hao yu
 * @date 2020/11/12 14:00
 */
@Data
public class CommentPublish implements Serializable {

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**文章id值*/
    @Excel(name = "文章id值", width = 15)
    @ApiModelProperty(value = "文章id值",required = true)
    private String articleId;
    /**文章id值*/
    @Excel(name = "文章标题", width = 15)
    @ApiModelProperty(value = "文章标题",required = true)
    private String articleTitle;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**评论人id*/
    @Excel(name = "评论人id", width = 15)
    @ApiModelProperty(value = "评论人id")
    private String commentatorId;
    /**评论内容*/
    @Excel(name = "评论内容", width = 15)
    @ApiModelProperty(value = "评论内容")
    private String commentContent;
    /**点赞数*/
    @Excel(name = "点赞数", width = 15)
    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;
    /**是否置顶*/
    @ApiModelProperty(value = "是否置顶")
    private Integer isTop;

    /**微信UserVO*/
    @ApiModelProperty(value = "前端显示的用户信息")
    private WxUserVO userInfo;
    /** 0是知识 1是文章 */
    @ApiModelProperty(value = "0是知识 1是文章")
    @TableField(exist = false)
    private int type;
}